package cl.rizepe.playntest.core.views;

import playn.core.Image;

public class SpriteComposedDirection extends SpriteComposed {
	int row=0;
	public SpriteComposedDirection(Image image, int widthFrames, int heightFrames) {
		super(image, widthFrames, heightFrames);
	}
		
	
	public int getRow() {
		return row;
	}


	public void setRow(int row) {
		this.row = row;
		setFrame(0);
	}


	
	
	@Override
	public void setFrame(int i){
		
		currentFrame=(i%this.widthFrames+row*widthFrames);
		invalid=true;
		refresh();
	}
	
}
